<tpl> include file='sys_config.head.html' </tpl>
<div id="doc3">
	<div id="yui-main">
		<div class="yui-g">
 			<div id="divinbox">
				<div class="gtlbar">
					<div class="gtlbar-left">项目执行管理 &gt;&gt; 提交稿件规划</div>
					<div onclick="location.href='doing_flow.manage.php?action=gaojian'" class="gtlbar-right">
							<input type="button" name="" class="apd" style="width:150px;">
							<b>浏览&打印&审批</b>
					</div>
				</div>
                <div class="ctge">
					<div class="ctge-1">
						<div style="font-size:16px; font-weight:bold; height:30px;">
	    					<a href="project_official.manage.php?action=view&id=2&curpage=1">“中国达人”广告投放项目</a>
	    				</div>
						<form action="doing_flow.manage.php?action=save_gaojian" method="post" id="form1" name="form1" >
        				<div class="ctge-1-1">
					  	<table cellSpacing="0" cellPadding="0" class="fct" border="0">
							<tr>
								<th>
								  整体指导内容
								</th>
								<td >
								  <textarea name="all_zhidao" style="width:400px; height:100px;"></textarea>
								</td>
						     </tr>
						</table>
						<br>
        				<table cellSpacing="0" cellPadding="0" class="fct" border="0"> 
							<tr style="background-color:#eee">
								<td style="text-align:center; font-size:14px;">
								   序号
								</td>
								<td style="text-align:center; font-size:14px;">
								   指导内容
								</td>
								<td style="text-align:center; font-size:14px;">
								   分类
								</td>
								<td style="text-align:center; font-size:14px;">
								   选择人员
								</td>
								<td style="text-align:center; font-size:14px;">
								   操作
								</td>
						    </tr>
						    <tr>
								<td style="text-align:center; ">
									1
								</td>
								<td style="text-align:center; ">
									<textarea name="zhidao[]" style="width:400px; height:60px;"></textarea>
								</td>
								<td style="text-align:center; ">
									<select name="type[]">
						                 <option value="1">新闻</option>
						                 <option value="2">评论</option>
						                 <option value="3">网络</option>
						                 <option value="4">论坛搞</option>
						             </select>
								</td>
								<td>
						             <input class="fct-input" name="txtMemberName" id="txtMemberName" type="text" value="点击选择比稿人员" readonly="true" />
										<input class="bthl" id="selMember_0" onclick="javascript:select_mem(this);" value="选择比稿人员" type="button" />
										<input type="hidden" name="hidMemberId[]" id="hidMemberId" value="">
						         </td>
								<td style="text-align:center; ">
									<a href="#">删除</a>
								</td>
							</tr>
						</table>
						<br>
        				<div style="text-align:center">
							<input type="button" class="bthl" value="增加一条记录" />&nbsp;&nbsp;
							<input type="submit" class="bthl" value="提交" />
						</div>
						</form>
						<br>
						<div style="height:30px; font-size:14px; font-weight:bold;">
							需要的审核流程
						</div>
						<table width="100%" border="1">
							<tr style=" background: none repeat scroll 0 0 #EEEEEE;  font-size: 14px; ">
								<td style="text-align:center; padding: 10px;">审核</td>
								<td style="text-align:center; padding: 10px;">角色</td>
								<td style="text-align:center; padding: 10px;">审批人</td>
								<td style="text-align:center; padding: 10px;">审批结果</td>
								<td style="text-align:center; padding: 10px;">审批时间</td>
								<td style="text-align:center; padding: 10px;">审批意见</td>
						    </tr>
						     
						    <tr>
                                <td style="padding: 10px;">一级</td>
								<td style="padding: 10px;">客户总监</td>
								<td style="padding: 10px;">张三</td>
								<td style="padding: 10px;">待审核</td>
								<td style="padding: 10px;"></td>
								<td style="padding: 10px;"></td>
                            </tr>
						</table>
        			    
        			 </div>
        	   </div>
 
				
			</div>
		</div>
	</div>
</div>
<div id="module_block" style="display:none; width:800px; height:460px; margin:0; padding:0;">
<table width="100%" border="0">
	<tr>
		<td>
			<span id="span_title" style="font-size:16px; line-height:40px;"></span>
			<div id="list_module" style="display:none"></div>
			<input type="button" value="确定" onclick="submit_module();" class="bthl" />&nbsp;&nbsp;
			<input type="button" value="取消" onclick="deleteRow(this);" class="bthl" />
		</td>
	</tr>
</table>
</div>
<tpl> include file='sys_config.js.html' </tpl>
<link href="<tpl> $site_url </tpl>/js/jquery/ui.theme.css" rel="stylesheet" type="text/css" />
<script src="<tpl> $site_url </tpl>/js/jquery/ui.datepicker.js"></script>
<script src="<tpl> $site_url </tpl>/js/jquery/jquery.blockUI.js"></script>
<script>
var module_block = $('#module_block')[0];
function select_mem(){
		$.blockUI(module_block, { width: '800px', height:'460px',top:'80px', left:'20%' });
		$('#span_title').html("选择比稿人员");
		ajax_get_module('selMember', 0);
		$('#list_module').slideDown("fast");
}

function ajax_get_module(str, cid){
	var idstr = '';
	if(cid != 0){
		idstr = '&cid='+cid;
	}
	$.ajax({
		url: "project.manage.php",
		data: "action=get_module&module_name="+str + idstr,
		type:'post',
		dataType:"html",
		success: function(msg){
			if(msg != ""){
				$("#list_module").html(msg);
			}else{
				//$("#list_module").html("您还没有添加客户，点击这里<a hrf='#'>添加</a>");
			}
		}
	});
	return false;
}
function submit_module(){
	var module_info = $('#module_info').val();
	var id = $("input[@checked]").val();
	if(id > 0){
		switch(module_info){
			case 'member':
				var name = $('#hidMemberName_'+id).val();
				$("#hidMemberId").val(id);
				$("#txtMemberName").val(name);
				break;
		}
	}
	
	$.unblockUI();
	$("#list_module").html('');
}
function getPageContent(address){
	$.ajax({
		url: address,
		dataType:"javascript",
		success: function(msg){
			$("#search_list").html(msg);
		}
	});
}
</script>
</body>
</html>